import json

obj = {"msg": "成功", "status": 200}


def put(key, value):
    obj[key] = value


def putData(value):
    obj["data"] = value


phone = "phone"

driver_data = {phone: "12306"}
buyer_data = {phone: "10010"}
web_data = {phone: "95555"}

put("driver_data", driver_data)
put("buyer_data", buyer_data)
put("web_data", web_data)

json_str = json.dumps(obj)
print(json_str)
